﻿using NExt.util;
using NExt.Core.Model.Base;

namespace NExt.data
{
    //TODO: Not tested
    public class DataProxy : DataProxy<DataProxyEvents>
    {
    }

    public abstract class DataProxy<TEvents>: Observable<TEvents>
        where TEvents : DataProxyEvents, new()
    {
    }

    public class DataProxyEvents : ObservableEvents
    {
        public IScript beforeload { get; set; }
        public IScript load { get; set; }
        public IScript loadexception { get; set; }
    }
}
